<?php


use think\facade\Route;

Route::get('crud/posts', 'crud.Posts/index')->option(['real_name' => '帖子列表接口']);

Route::get('crud/posts/create', 'crud.Posts/create')->option(['real_name' => '帖子获取创建表单接口']);

Route::post('crud/posts', 'crud.Posts/save')->option(['real_name' => '帖子保存接口']);

Route::get('crud/posts/:id/edit', 'crud.Posts/edit')->option(['real_name' => '帖子获取修改表单接口']);

Route::put('crud/posts/:id', 'crud.Posts/update')->option(['real_name' => '帖子修改接口']);

Route::put('crud/posts/status/:id', 'crud.Posts/status')->option(['real_name' => '帖子修改状态接口']);

Route::delete('crud/posts/:id', 'crud.Posts/delete')->option(['real_name' => '帖子删除接口']);

Route::get('crud/posts/:id', 'crud.Posts/read')->option(['real_name' => '帖子查看接口']);



